<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->


/*-------------------------------------------------- nTab begin --------------------------------------------------*/
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
  if (i == Num)
  {
   thisObj.className = "active"; 
      document.getElementById(tabObj+"_Content"+i).style.display = "block";
  }else{
   tabList[i].className = "normal"; 
   document.getElementById(tabObj+"_Content"+i).style.display = "none";
  }
} 
}




/*-------------------------------------------------- nBox begin --------------------------------------------------*/
function a() {

if (f.test[0].checked == true) {
    document.getElementById("c1").style.display="none";
    document.getElementById("c2").style.display="block";
	document.getElementById("c3").style.display="none";
	document.getElementById("c4").style.display="none";
}
if (f.test[1].checked == true) {
    document.getElementById("c1").style.display="none";
    document.getElementById("c2").style.display="none";
	document.getElementById("c3").style.display="block";
	document.getElementById("c4").style.display="none";
}
if (f.test[2].checked == true) {
    document.getElementById("c1").style.display="none";
    document.getElementById("c2").style.display="none";
	document.getElementById("c3").style.display="none";
	document.getElementById("c4").style.display="block";
}

}




// JavaScript Document
// Written by DragonFly 龍飛
// QQ:29059637 E-mail:zapman74@qq.com

function DF_setHomepage(obj,url){obj.style.behavior="url(#default#homepage)";obj.setHomePage(url);}

function DF_preloadImg(){
	if(document.images){
		if(!document.imageArray) document.imageArray=new Array();
		var i,j=document.imageArray.length,args=DF_preloadImg.arguments;
		for(i=0;i<args.length;i++){
			if(args[i].indexOf("#")!=0){
				document.imageArray[j]=new Image;
				document.imageArray[j++].src=args[i];
			}
		}
	}
}

function DF_navSetCurrent(id){document.getElementById("nav_"+id).className="current";}

function DF_newsTag(id){
	for(var i=1;i<=2;i++){
		document.getElementById("news_tag_"+i).className="";
		document.getElementById("news_list_"+i).style.display="";
	}
	document.getElementById("news_tag_"+id).className="current";
	document.getElementById("news_list_"+id).style.display="block";
}

function DF_loginTag(type){
	if(type==0){
		document.getElementById("img1").style.display="";
		document.getElementById("img2").style.display="none";
	}
	if(type==1){
		document.getElementById("img2").style.display="";
		document.getElementById("img1").style.display="none";
	}
}

function DF_scrollOnload(){
	sb=document.getElementById("scroll_box");
	sm=document.getElementById("scroll_main");
	st=document.getElementById("scroll_main").scrollWidth;
	sm.innerHTML+=sm.innerHTML;
	DF_scrollStart();
}
function DF_scroller(){sb.scrollLeft=sb.scrollLeft<sb.scrollWidth-sb.offsetWidth?sb.scrollLeft+1:st-sb.offsetWidth;}
function DF_scrollStart(){scroller=setInterval("DF_scroller()",20);}
function DF_scrollEnd(){clearInterval(scroller);}

function DF_noticeSet(id,obj,lineheight,line,speed,delay){
	eval("noticeLineHeight"+id+"=lineheight;");
	eval("noticeLine"+id+"=line;");
	eval("noticeSpeed"+id+"=speed;");
	eval("noticeDelay"+id+"=delay;");
	eval("noticeGoDelay"+id+"=0;");
	eval("noticeCurrentTop"+id+"=0;");
	eval("noticeStop"+id+"=false;");
	eval("noticeDiv"+id+"=document.getElementById(obj);");
	eval("noticeDiv"+id+".scrollTop=0;");
	var myid=id;
	with(eval("noticeDiv"+myid)){
		eval("noticeDiv"+myid).onmouseover=new Function("noticeStop"+myid+"=true");
		eval("noticeDiv"+myid).onmouseout=new Function("noticeStop"+myid+"=false");
	}
	eval("noticeDiv"+id+".innerHTML+=noticeDiv"+id+".innerHTML;")
	setInterval("DF_noticeFlip("+id+")",eval("noticeSpeed"+id));
}
function DF_noticeFlip(id){
	if(eval("noticeStop"+id)==true) return;
	eval("noticeCurrentTop"+id+"+=1;");
	if(eval("noticeCurrentTop"+id)==eval("noticeLineHeight"+id)){
		eval("noticeGoDelay"+id+"+=1;");
		eval("noticeCurrentTop"+id+"-=1;");
		eval("noticeDiv"+id).scrollTop=Math.ceil(eval("noticeDiv"+id).scrollTop/eval("noticeLineHeight"+id))*eval("noticeLineHeight"+id);
		if(eval("noticeGoDelay"+id)==eval("noticeDelay"+id)){
			eval("noticeCurrentTop"+id+"=0;");
			eval("noticeGoDelay"+id+"=0;");
		}
	}else{
		if(eval("noticeDiv"+id).scrollTop>=eval("noticeLineHeight"+id)*eval("noticeLine"+id)) eval("noticeDiv"+id).scrollTop-=eval("noticeDiv"+id).scrollHeight;
		eval("noticeDiv"+id).scrollTop+=1;
	}
}

function DF_menuSetCurrent(id){document.getElementById("menu_item_"+id).className="current";}
function DF_menuSubDisplay(id){
	for(var i=1;i<=submenuCount;i++){
		document.getElementById("menu_item_"+i).className="";
		document.getElementById("menu_sub_"+i).style.display="none";
	}
	DF_menuSetCurrent(id);
	document.getElementById("menu_sub_"+id).style.display="block";
}
function DF_menuSubSetCurrent(id){document.getElementById("menu_sub_"+id).className="current";}

function DF_windowClose(){
	window.opener=null;
	window.open("","_self");
	window.close();
}